import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  selection: false,
  index: false,
  indexLabel: i18n.t('publics.serial'),
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [
    {
      label: i18n.t('coupon.shopName'),
      prop: 'shopName',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    }, {
      label: i18n.t('seckill.activityName'),
      prop: 'discountName',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    }, {
      label: i18n.t('coupon.startTime'),
      prop: 'startTime'
    }, {
      label: i18n.t('coupon.endTime'),
      prop: 'endTime'
    }, {
      width: 150,
      label: i18n.t('product.status'),
      prop: 'status',
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('seckill.close'),
          value: 0
        }, {
          label: i18n.t('seckill.open'),
          value: 1
        }, {
          label: i18n.t('groups.offlineViolation'),
          value: 2
        }, {
          label: i18n.t('product.pendingReview'),
          value: 3
        }
      ]
    }
  ]
}
